package redis

import (
	"github.com/go-redis/redis"
	"strconv"
	"time"
)

// 同步商品
func SetRedisGoods(goodsId int, goodsData string) {
	key := "goods_id_" + strconv.Itoa(goodsId)
	WitRedis(func(rdb *redis.Client) {
		rdb.Set(key, goodsData, time.Hour*74)
	})
}
